<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>试卷管理</title>
    <#include "/common/link.ftl">

</head>
<body class="hold-transition skin-black sidebar-mini">
<div class="wrapper">
    <#include "/common/navbar.ftl">
    <#assign currentMenu="exam"/>
    <#include "/common/menu.ftl">
    <div class="content-wrapper">
        <section class="content-header">
            <h1>试卷预览</h1>
        </section>
        <section class="content">
            <div class="box" style="padding: 10px">
                <div class="row">

                    <div class="col-md-offset-4 col-md-8">
                        <h1 class="col-md-offset-1">${exam.title}</h1>
                    </div>
                    <div class="col-md-12">
                        <div class="panel panel-default">
                            <div class="panel-body">
                                <div class="col-md-4">时间：${exam.examMinute} </div>
                                <div class="col-md-4">总分：${exam.totalScore}</div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h3>一、单选题（共${fp.singleChoiceScore*fp.singleChoiceCount}分）</h3>
                    </div>
                    <#list singles as s>
                        <div class="panel-body">
                            <#list s.questions as sq>
                                <p>${sq_index+1}、${sq.title}<span>（${fp.singleChoiceScore}分）</span></p>
                                <#list sq.list as q>
                                    <p>${q.title}</p>
                                </#list>
                                <div style="color:red">正确答案：${sq.result}</div>
                            </#list>
                        </div>
                    </#list>
                    <h3>二、多选题（共${fp.multipleChoiceScore*fp.multipleChoiceCount}分）</h3>
                </div>
                <#list multiples as s>
                    <div class="panel-body">
                        <#list s.questions as sq>
                            <p>${sq_index+1}、${sq.title}<span>（${fp.multipleChoiceScore}分）</span></p>
                            <#list sq.list as q>
                                <p>${q.title}</p>
                            </#list>
                            <div style="color:red">正确答案：${sq.result}</div>
                        </#list>
                    </div>
                </#list>
                <div class="panel-heading">
                    <h3>三、判断题（共${fp.judgmentScore*fp.singleChoiceCount}分）</h3>
                </div>
                <#list judges as j>
                <div class="panel-body">
                    <#list j.questions as q>
                        <p>${q_index+1}、${q.title}<span>（${fp.judgmentScore}分）</span></p>
                        <#list q.list as q>
                        </#list>
                        <div style="color:red">正确答案：${(q.result)}</div>
                    </#list>
                </div>
            </div>
            </#list>
        </section>
    </div>
    <#include "/common/footer.ftl">
</div>
</body>
</html>
